import request from "@/util/request";
import type { Content } from '@/type/Home.ts'

// 通过枚举管理首页模块地址

enum API {
    Hospital_URL = "/list",

    HosDetail_URL = "/detail",
    Kes_url = "/kes",
}
// 获取医院数据 

export const requstHosptital = (page: number, limit: number) => request.get<any, Content>(API.Hospital_URL + `/${page}/${limit}`)
//获取医院详情
export const requestHosDetail = (code: any) => request.get<any, any>(API.HosDetail_URL + `/${code}`)

// 获取科室信息

export const kes = () => request.get<any, any>(API.Kes_url)